package com.pactera.madp.cp.api.vo.prod;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel(value = "基金产品详情实体")
@Data
public class ProdFundDetailVo {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "产品编码")
    private String code;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "日涨跌幅")
    private String dayRate;

    @ApiModelProperty(value = "年涨跌幅")
    private String yearRate;

    @ApiModelProperty(value = "描述1")
    private String desc1;

    @ApiModelProperty(value = "描述2")
    private String desc2;

    @ApiModelProperty(value = "产品期限")
    private String termDesc;

    @ApiModelProperty(value = "净值")
    private Float nav;

    @ApiModelProperty(value = "净值日期")
    private LocalDateTime navDate;

    @ApiModelProperty(value = "基金公司名称")
    private String taName;

    @JsonProperty("pFirstAmt")
    @ApiModelProperty(value = "个人起购金额")
    private Double pFirstAmt;

    @ApiModelProperty(value = "风险等级")
    private Integer riskLevel;

    @ApiModelProperty(value = "产品投资类型")
    private Integer prdInvestType;

    @ApiModelProperty(value = "产品属性 0-普通型 1-股票型 2-债券型 3-混合型 4-货币型 5-指数型 6-保本型 7-理财型 8-QDII型 9-组合型")
    private String prdAttr;

    @JsonProperty("FundIncomeUnit")
    @ApiModelProperty(value = "万份产品单位收益")
    private String incomeUnit;

    @JsonProperty("Yield")
    @ApiModelProperty(value = "七日年化收益率")
    private String yield;

    @ApiModelProperty(value = "产品概要说明文件地址")
    private String url;

}
